<% if @error %>
  flash(null, "<%= escape_javascript(@error) %>");
<% else %>
  window.location.replace("<%= assembly_design_path(@assembly) %>");
<% end %>
